<!DOCTYPE html>
<html>
<head>
    <title>资产记录表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("sys:asset:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:asset:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:asset:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">资产名称id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.assetnameid" placeholder="资产名称id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">位置</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.location" placeholder="位置"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">标签：以空格为分隔符</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.labels" placeholder="标签：以空格为分隔符"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">资产的状态：0==在库，1==在用，2==消费</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.status" placeholder="资产的状态：0==在库，1==在用，2==消费"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">用户ID</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.userid" placeholder="用户ID"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">购买价格</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.price" placeholder="购买价格"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">购买日期</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.purchasedate" placeholder="购买日期"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">有效日期</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.periodofvalidity" placeholder="有效日期"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">保修日期</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.warrantydate" placeholder="保修日期"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">资产编号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.assetnum" placeholder="资产编号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">资产序列号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.serialnum" placeholder="资产序列号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">供应商</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.supplier" placeholder="供应商"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">描述信息</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.description" placeholder="描述信息"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">资产添加时间，统计报表使用</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.addmonth" placeholder="资产添加时间，统计报表使用"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.createtime" placeholder="创建时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建人</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.creator" placeholder="创建人"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">更新时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.updatetime" placeholder="更新时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">更新人</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="asset.updator" placeholder="更新人"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/asset.js?_${.now?long}"></script>
</body>
</html>